<template>
  <div id="app">
    <!-- 头部导航 -->
    <header class="header header-fixed">
      <el-row >
        <el-col :span="12" class="header_content">
          <el-col :span="8">
            <img src="../static/image/logo_kuaijiao.png">
          </el-col>
          <el-col :span="16" class="col_666">
            收费单位管理系统
          </el-col>
        </el-col>
        <el-col :span="12" class="text-r header_content" style="height: 33px">
          <el-col :span="8" :offset="8">
            <!--<img src="assets/image/my_pic.png">-->
            <span class="col_666 float-l">当前用户：改造测试</span>
          </el-col>
          <el-col :span="4" class="col_666">
            <i class="icon iconfont icon-xiugai"></i>
            <span class="col_666">修改密码</span>
          </el-col>
          <el-col :span="4" class="col_666">
            <i class="icon iconfont icon-tuichu"></i>
            <span class="col_666">退出</span>
          </el-col>
        </el-col>
      </el-row>
    </header>
    <div style="position: relative;height: 50px;width: 100%;"></div>

    <main>
      <!-- 左侧导航 -->
      <div class="main-left">
        <el-menu  default-active="/"   class="el-menu-vertical-demo" router>

          <el-menu-item index="/">
            <!--<i class="el-icon-menu"></i>-->
            <i class="icon iconfont icon-yonghu"></i>
            <span slot="title">首页</span>
          </el-menu-item>

          <el-submenu index="2">
            <template slot="title">
              <i class="icon iconfont icon-xitongguanli"></i>
              <span>系统管理</span>
            </template>
            <el-menu-item index="/sys_management/jigou_manage">机构管理</el-menu-item>
            <el-menu-item index="/sys_management/role_manage">角色管理</el-menu-item>
            <el-menu-item index="/sys_management/user_manage">用户管理</el-menu-item>
          </el-submenu>

          <el-submenu index="3">
            <template slot="title">
              <i class="icon iconfont icon-xinxiweihu"></i>
              <span>缴费信息维护</span>
            </template>
            <el-menu-item index="/payFee_save/payFee_save">缴费人员管理</el-menu-item>
          </el-submenu>

          <el-submenu index="4">
            <template slot="title">
              <i class="icon iconfont icon-icon"></i>
              <span>收费管理</span>
            </template>
            <el-menu-item index="/charge_management/project_type_set">项目类型设置</el-menu-item>
            <el-menu-item index="/charge_management/charge_item_set">收费项目设置</el-menu-item>
            <el-menu-item index="/charge_management/hand_generat_cost">手动生成费用</el-menu-item>
            <el-menu-item index="/charge_management/handBatch_generat_cost">批量生成费用</el-menu-item>
            <el-menu-item index="/charge_management/charge_inquiry">收费查询</el-menu-item>
            <el-menu-item index="/charge_management/charge_under_line">线下收费</el-menu-item>
          </el-submenu>

          <el-submenu index="5">
            <template slot="title">
              <i class="icon iconfont icon-message"></i>
              <span>通知</span>
            </template>
            <el-menu-item index="/notice/notice_manage">通知管理</el-menu-item>
          </el-submenu>

          <el-menu-item index="/table">列表模版</el-menu-item>
          <el-menu-item index="/add">添加模板</el-menu-item>
          <el-menu-item index="/info">详情</el-menu-item>

        </el-menu>

      </div>

      <!-- 右侧主内容区 -->
      <div class="main-right" >
        <router-view/>
      </div>
    </main>
  </div>
</template>

<script>
  //import src from 'assets/image/my_pic.png'
  import serviceApi from './js/ajax'
  export default {
    name: 'app',
    data: function (){
      return {
        active:true
      }
    },
    created: function () {
      var options = {};
      serviceApi.sendService('jiaofei/system/menu', options, function (resData) {
        console.log(resData)
      })
//
//      this.$http.get('/system/menu/getMenulistPage')
//        .then(function (response) {
//          console.log(response);
//        })
//        .catch(function (error) {
//          console.log(error);
//        });
    }
  }
</script>

<style scoped>
  /*@import "assets/css/iconfont.css";*/
#app {
  min-width: 1200px;
  margin: 0 auto;
  font-family: "Helvetica Neue","PingFang SC",Arial,sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 14px;
}
body{margin: 0;}
/* 头部导航 */
header{
  z-index: 1000;
  min-width: 1200px;
  transition: all 0.5s ease;
  border-top: solid 4px #3091F2;
  background-color: #fff;
  box-shadow: 0 2px 4px 0 rgba(0,0,0,.12),0 0 6px 0 rgba(0,0,0,.04);
  padding: 10px 30px;
}
header.header-fixed{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}
  header  .header_content{
    display: flex;
    align-items: center;
  }
  .header_content i{
    margin-right: 20px;
  }
  .header_content .col_666{
    cursor: pointer;
  }
.header img{
  width: 180px;
}
/* 主内容区 */
main{
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  min-height: 800px;
  border: solid 1px #E9ECF1;
  /*background-color: #FCFCFC;*/
  /*background: url("assets/image/pc_bg.png") no-repeat 100%;*/
}
main .main-left{
  /*text-align: center;*/
  width: 200px;
  float: left;
}
  main .main-left i{
    margin-right: 10px;
  }
main .main-right{
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  background-color: #f8f9fb;
  padding: 20px;
}
main .el-menu{
  background-color: transparent!important;
}

  .el-submenu__title span{
    color: #333;
  }
  .is-opened ul{
    margin-left: 30px !important;
    color: #999;
  }
</style>
